package org.geeks.gslog4j2.func;

import lombok.extern.slf4j.Slf4j;
import org.geeks.gslog4j2.GsLog4j2ApplicationTests;
import org.junit.Test;

import java.util.stream.IntStream;

@Slf4j
public class Log4j2T extends GsLog4j2ApplicationTests {

  @Test
  public void info() throws Exception {
    long begin = System.currentTimeMillis();

    IntStream.range(0, 10000)
        .forEach(
            i -> {
              log.info("Hello, {}", "world");
            });

    log.info("Mission complete in {} ms", System.currentTimeMillis() - begin);
  }
}
